package com.ym.medical.domain.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ym.common.constant.BaseEntity;
import com.ym.base.enums.FlagEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.LogicDelete;

import javax.persistence.Table;

/**
 * 医生擅长对象 doctor_goodat
 *
 * @author ym
 * @date 2020-08-21
 */
@ApiModel("医生擅长-实体")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "doctor_goodat")
public class DoctorGoodatEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 医生ID
	 */
	@ApiModelProperty("医生ID")
	private Long doctorId;

	/**
	 * 擅长
	 */
	@ApiModelProperty("擅长")
	private String goodAt;

	/**
	 * 删除
	 */
	@ApiModelProperty("删除")
	@JsonSerialize(converter = FlagEnum.Covert.class)
	@LogicDelete
	private String deleted;

}
